<template>
  <page-main class="page-report-list">
    <!-- <div class="condition">
      <van-tag round plain type="primary" class="m-r-10">近一年</van-tag>
      <van-tag round plain type="primary">选择日期<van-icon name="play" /></van-tag>
    </div> -->
    <van-empty description="暂时没有数据哦" v-if="list.length == 0"/>
    <div>
      <div class="fly-panel" v-for="(item,index) in list" :key="index" @click="$util.gotoPage('/report/detail', {inspectionId: item.inspectionId})">
        <div class="hd">
          <div class="title">{{item.name}}</div>
        </div>
        <div class="bd">
          <div class="desc">
            <p><span>{{item.officeName}}</span> <span>{{item.createBy}}</span></p>
            <p>{{item.createTime}}</p>
          </div>
          <div class="link">
            <span class="c-blue">查看详情</span>
          </div>
        </div>
      </div>
    </div>
  </page-main>
</template>
<script>
export default {
  data(){
    return{
      list:[],
    }
  },
  created(){
    this.getList();
  },
  methods:{
    getList(){
      this.$http('get', '/admin/custApi/getInspection', this.$route.query, (data,msg) => {
        this.list = data;
      })
    },
  }
}
</script>
